import LoginPage from "../views/LoginPage.vue";
export default [
  {
    path: "/",
    name: "login",
    component: LoginPage,
    meta: {
      isPublic: true,
    },
  },
  {
    path: "/home",
    name: "home",
    component: () => import("../views/HomePage.vue"),
    meta: {
      isPublicAuth: true,
    },
    // children: [
    //   {
    //     path: "/home/admin/course",
    //     name: "adminCourse",
    //     component: () => import("../views/admin/course/CoursePage.vue"),
    //   },
    //   {
    //     path: "/home/admin/teacher",
    //     name: "adminTeacher",
    //     component: () => import("../views/admin/teacher/TeacherPage.vue"),
    //   },
    // ],
    children: [
      {
        path: "/home/admin/welcome",
        name: "adminWelcome",
        component: () => import("../views/admin/welcome/WelcomePage.vue"),
      },
      {
        path: "/home/admin/depart",
        name: "adminDepart",
        component: () => import("../views/admin/depart/DepartPage.vue"),
      },
      {
        path: "/home/admin/major",
        name: "adminMajor",
        component: () => import("../views/admin/major/MajorPage.vue"),
      },
      {
        path: "/home/admin/class",
        name: "adminClass",
        component: () => import("../views/admin/class/ClassPage.vue"),
      },
      {
        path: "/home/admin/student",
        name: "adminStudent",
        component: () => import("../views/admin/student/StudentPage.vue"),
      },
      {
        path: "/home/admin/teacher",
        name: "adminTeacher",
        component: () => import("../views/admin/teacher/TeacherPage.vue"),
      },
      {
        path: "/home/admin/course",
        name: "adminCourse",
        component: () => import("../views/admin/course/CoursePage.vue"),
      },
      {
        path: "/home/admin/choose",
        name: "adminChoose",
        component: () => import("../views/admin/choose/ChoosePage.vue"),
      },
      {
        path: "/home/admin/manager",
        name: "adminManager",
        component: () => import("../views/admin/manager/ManagerPage.vue"),
      },
      {
        path: "/home/403",
        name: "noAuth",
        component: () => import("../views/NoAuth.vue"),
        meta: {
          isPublicAuth: true,
        },
      },
      {
        path: "*",
        name: "notFound",
        component: () => import("../views/NoFound.vue"),
        meta: {
          isPublicAuth: true,
        },
      },
    ],
  },
];
